/**
 * @file RGB_device.h
 * @author Ai-Thinker Seahi
 * @brief
 * @version 0.1
 * @date 2021-08-26
 *
 * @copyright Copyright (c) 2021
 *
 */
#ifndef _RGB_device_H_
#define RGB_device_H

#include "driver/gpio.h"
#include "driver/pwm.h"
#define Red_Pin 14
#define Green_Pin 12
#define Blue_Pin 13
 //设置PWD的周期 1000Hz 1000us
#define PWM_PERIOD 1000
//设置颜色枚举
typedef enum {
    RED = 0,
    GREEN,
    BULE,
    VIOLET,
    YELLOW,
}RGB_handle_t;
//设置IO
//s
void rgb_io_init(void);
void close_rgb();
void rgb_set_color(RGB_handle_t color);
#endif
